Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Node / ReticulumProjects / MeshChatX.git / files / tests / frontend / NotificationUtils.test.js

Displaying Raw • Download


tests/frontend/NotificationUtils.test.js b960db2e8bf87b96c14f6421402a16798d7a9ded (b960db2e) Text, 7.17 KB

Tff7b72import Tb4b4b4{ Te6edf3describeTb4b4b4, Te6edf3itTb4b4b4, Te6edf3expectTb4b4b4, Te6edf3viTb4b4b4, Te6edf3beforeEachTb4b4b4, Te6edf3afterEach Tb4b4b4} Tff7b72from Ta5d6ff"vitest"Tb4b4b4;
Tff7b72import Te6edf3NotificationUtils Tff7b72from Ta5d6ff"../../meshchatx/src/frontend/js/NotificationUtils"Tb4b4b4;

Te6edf3describeTb4b4b4(Ta5d6ff"NotificationUtils"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Tff7b72let Te6edf3originalNotificationTb4b4b4;
Tff7b72let Te6edf3electronMockTb4b4b4;
Tff7b72let Te6edf3androidMockTb4b4b4;

Te6edf3beforeEachTb4b4b4(Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3originalNotification Tff7b72= Tffa657globalThisTb4b4b4.Te6edf3NotificationTb4b4b4;
Te6edf3NotificationUtilsTb4b4b4.Te6edf3_webMessageNotificationsTb4b4b4.Te6edf3clearTb4b4b4(Tb4b4b4)Tb4b4b4;
Te6edf3electronMock Tff7b72= Tb4b4b4{
Te6edf3showNotificationTff7b72: Te6edf3viTb4b4b4.Te6edf3fnTb4b4b4(Tb4b4b4)Tb4b4b4,
Te6edf3closeMessageNotificationsTff7b72: Te6edf3viTb4b4b4.Te6edf3fnTb4b4b4(Tb4b4b4)Tb4b4b4,
Tb4b4b4}Tb4b4b4;
Te6edf3androidMock Tff7b72= Tb4b4b4{
Te6edf3getPlatformTff7b72: Te6edf3viTb4b4b4.Te6edf3fnTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3mockReturnValueTb4b4b4(Ta5d6ff"android"Tb4b4b4)Tb4b4b4,
Te6edf3showNotificationTff7b72: Te6edf3viTb4b4b4.Te6edf3fnTb4b4b4(Tb4b4b4)Tb4b4b4,
Te6edf3showIncomingCallNotificationTff7b72: Te6edf3viTb4b4b4.Te6edf3fnTb4b4b4(Tb4b4b4)Tb4b4b4,
Te6edf3showMissedCallNotificationTff7b72: Te6edf3viTb4b4b4.Te6edf3fnTb4b4b4(Tb4b4b4)Tb4b4b4,
Te6edf3cancelIncomingCallNotificationTff7b72: Te6edf3viTb4b4b4.Te6edf3fnTb4b4b4(Tb4b4b4)Tb4b4b4,
Te6edf3cancelMessageNotificationsTff7b72: Te6edf3viTb4b4b4.Te6edf3fnTb4b4b4(Tb4b4b4)Tb4b4b4,
Te6edf3cancelAllMessageNotificationsTff7b72: Te6edf3viTb4b4b4.Te6edf3fnTb4b4b4(Tb4b4b4)Tb4b4b4,
Te6edf3setOpenConversationHashesTff7b72: Te6edf3viTb4b4b4.Te6edf3fnTb4b4b4(Tb4b4b4)Tb4b4b4,
Te6edf3setDoNotDisturbEnabledTff7b72: Te6edf3viTb4b4b4.Te6edf3fnTb4b4b4(Tb4b4b4)Tb4b4b4,
Tb4b4b4}Tb4b4b4;
Tffa657globalThisTb4b4b4.Te6edf3Notification Tff7b72= Te6edf3viTb4b4b4.Te6edf3fnTb4b4b4(Tff7b72function Tb4b4b4(Te6edf3titleTb4b4b4, Te6edf3optsTb4b4b4) Tb4b4b4{
Tff7b72thisTb4b4b4.Te6edf3title Tff7b72= Te6edf3titleTb4b4b4;
Tff7b72thisTb4b4b4.Te6edf3opts Tff7b72= Te6edf3optsTb4b4b4;
Tff7b72thisTb4b4b4.Te6edf3close Tff7b72= Te6edf3viTb4b4b4.Te6edf3fnTb4b4b4(Tb4b4b4)Tb4b4b4;
Tff7b72return Tff7b72thisTb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;
Tffa657globalThisTb4b4b4.Te6edf3NotificationTb4b4b4.Te6edf3requestPermission Tff7b72= Te6edf3viTb4b4b4.Te6edf3fnTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3mockResolvedValueTb4b4b4(Ta5d6ff"granted"Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3afterEachTb4b4b4(Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Tffa657globalThisTb4b4b4.Te6edf3Notification Tff7b72= Te6edf3originalNotificationTb4b4b4;
Tff7b72delete Tffa657globalThisTb4b4b4.Te6edf3electronTb4b4b4;
Tff7b72delete Tffa657globalThisTb4b4b4.Te6edf3MeshChatXAndroidTb4b4b4;
Te6edf3viTb4b4b4.Te6edf3restoreAllMocksTb4b4b4(Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3describeTb4b4b4(Ta5d6ff"Electron"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3beforeEachTb4b4b4(Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Tffa657globalThisTb4b4b4.Te6edf3electron Tff7b72= Te6edf3electronMockTb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3itTb4b4b4(Ta5d6ff"showNewMessageNotification delegates to electron with destination hash"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3NotificationUtilsTb4b4b4.Te6edf3showNewMessageNotificationTb4b4b4(Ta5d6ff"Alice"Tb4b4b4, Ta5d6ff"hello"Tb4b4b4, Tff7b72falseTb4b4b4, Ta5d6ff"abcd"Tb4b4b4)Tb4b4b4;
Te6edf3expectTb4b4b4(Te6edf3electronMockTb4b4b4.Te6edf3showNotificationTb4b4b4)Tb4b4b4.Te6edf3toHaveBeenCalledWithTb4b4b4(Ta5d6ff"New Message"Tb4b4b4, Ta5d6ff"Alice: hello"Tb4b4b4, Tff7b72falseTb4b4b4, Ta5d6ff"abcd"Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3itTb4b4b4(Ta5d6ff"showNewMessageNotification passes silent flag to electron"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3NotificationUtilsTb4b4b4.Te6edf3showNewMessageNotificationTb4b4b4(Ta5d6ff"Alice"Tb4b4b4, Ta5d6ff"hello"Tb4b4b4, Tff7b72trueTb4b4b4, Ta5d6ff"abcd"Tb4b4b4)Tb4b4b4;
Te6edf3expectTb4b4b4(Te6edf3electronMockTb4b4b4.Te6edf3showNotificationTb4b4b4)Tb4b4b4.Te6edf3toHaveBeenCalledWithTb4b4b4(Ta5d6ff"New Message"Tb4b4b4, Ta5d6ff"Alice: hello"Tb4b4b4, Tff7b72trueTb4b4b4, Ta5d6ff"abcd"Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3itTb4b4b4(Ta5d6ff"clearMessageNotifications delegates to electron"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3NotificationUtilsTb4b4b4.Te6edf3clearMessageNotificationsTb4b4b4(Ta5d6ff"abcd"Tb4b4b4)Tb4b4b4;
Te6edf3expectTb4b4b4(Te6edf3electronMockTb4b4b4.Te6edf3closeMessageNotificationsTb4b4b4)Tb4b4b4.Te6edf3toHaveBeenCalledWithTb4b4b4(Ta5d6ff"abcd"Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3itTb4b4b4(Ta5d6ff"showIncomingCallNotification delegates to electron"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3NotificationUtilsTb4b4b4.Te6edf3showIncomingCallNotificationTb4b4b4(Ta5d6ff"Bob"Tb4b4b4)Tb4b4b4;
Te6edf3expectTb4b4b4(Te6edf3electronMockTb4b4b4.Te6edf3showNotificationTb4b4b4)Tb4b4b4.Te6edf3toHaveBeenCalledWithTb4b4b4(Ta5d6ff"Incoming Call"Tb4b4b4, Ta5d6ff"Bob is calling you."Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3itTb4b4b4(Ta5d6ff"showMissedCallNotification delegates to electron"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3NotificationUtilsTb4b4b4.Te6edf3showMissedCallNotificationTb4b4b4(Ta5d6ff"Charlie"Tb4b4b4)Tb4b4b4;
Te6edf3expectTb4b4b4(Te6edf3electronMockTb4b4b4.Te6edf3showNotificationTb4b4b4)Tb4b4b4.Te6edf3toHaveBeenCalledWithTb4b4b4(
Ta5d6ff"Missed Call"Tb4b4b4,
Ta5d6ff"You missed a call from Charlie."
Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3itTb4b4b4(Ta5d6ff"showNewVoicemailNotification delegates to electron"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3NotificationUtilsTb4b4b4.Te6edf3showNewVoicemailNotificationTb4b4b4(Ta5d6ff"Dave"Tb4b4b4)Tb4b4b4;
Te6edf3expectTb4b4b4(Te6edf3electronMockTb4b4b4.Te6edf3showNotificationTb4b4b4)Tb4b4b4.Te6edf3toHaveBeenCalledWithTb4b4b4(
Ta5d6ff"New Voicemail"Tb4b4b4,
Ta5d6ff"You have a new voicemail from Dave."
Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3describeTb4b4b4(Ta5d6ff"Android"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3beforeEachTb4b4b4(Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Tffa657globalThisTb4b4b4.Te6edf3MeshChatXAndroid Tff7b72= Te6edf3androidMockTb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3itTb4b4b4(Ta5d6ff"showNewMessageNotification does not post OS notifs (push bridge owns them)"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3NotificationUtilsTb4b4b4.Te6edf3showNewMessageNotificationTb4b4b4(Ta5d6ff"Alice"Tb4b4b4, Ta5d6ff"hello"Tb4b4b4, Tff7b72falseTb4b4b4, Ta5d6ff"abcd"Tb4b4b4)Tb4b4b4;
Te6edf3expectTb4b4b4(Te6edf3androidMockTb4b4b4.Te6edf3showNotificationTb4b4b4)Tb4b4b4.Te6edf3notTb4b4b4.Te6edf3toHaveBeenCalledTb4b4b4(Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3itTb4b4b4(Ta5d6ff"clearMessageNotifications cancels by destination hash"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3NotificationUtilsTb4b4b4.Te6edf3clearMessageNotificationsTb4b4b4(Ta5d6ff"abcd"Tb4b4b4)Tb4b4b4;
Te6edf3expectTb4b4b4(Te6edf3androidMockTb4b4b4.Te6edf3cancelMessageNotificationsTb4b4b4)Tb4b4b4.Te6edf3toHaveBeenCalledWithTb4b4b4(Ta5d6ff"abcd"Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3itTb4b4b4(Ta5d6ff"clearAllMessageNotifications cancels all"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3NotificationUtilsTb4b4b4.Te6edf3clearAllMessageNotificationsTb4b4b4(Tb4b4b4)Tb4b4b4;
Te6edf3expectTb4b4b4(Te6edf3androidMockTb4b4b4.Te6edf3cancelAllMessageNotificationsTb4b4b4)Tb4b4b4.Te6edf3toHaveBeenCalledTb4b4b4(Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3itTb4b4b4(Ta5d6ff"syncAndroidNotificationContext pushes open peers and DND"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3NotificationUtilsTb4b4b4.Te6edf3syncAndroidNotificationContextTb4b4b4(Tb4b4b4[Ta5d6ff"AAAA"Tb4b4b4, Ta5d6ff"bbbb"Tb4b4b4]Tb4b4b4, Tff7b72trueTb4b4b4)Tb4b4b4;
Te6edf3expectTb4b4b4(Te6edf3androidMockTb4b4b4.Te6edf3setOpenConversationHashesTb4b4b4)Tb4b4b4.Te6edf3toHaveBeenCalledWithTb4b4b4(Ta5d6ff"aaaa,bbbb"Tb4b4b4)Tb4b4b4;
Te6edf3expectTb4b4b4(Te6edf3androidMockTb4b4b4.Te6edf3setDoNotDisturbEnabledTb4b4b4)Tb4b4b4.Te6edf3toHaveBeenCalledWithTb4b4b4(Tff7b72trueTb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3itTb4b4b4(Ta5d6ff"showIncomingCallNotification delegates to Android bridge"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3NotificationUtilsTb4b4b4.Te6edf3showIncomingCallNotificationTb4b4b4(Ta5d6ff"Bob"Tb4b4b4)Tb4b4b4;
Te6edf3expectTb4b4b4(Te6edf3androidMockTb4b4b4.Te6edf3showIncomingCallNotificationTb4b4b4)Tb4b4b4.Te6edf3toHaveBeenCalledWithTb4b4b4(Ta5d6ff"Bob"Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3itTb4b4b4(Ta5d6ff"showMissedCallNotification delegates to Android bridge"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3NotificationUtilsTb4b4b4.Te6edf3showMissedCallNotificationTb4b4b4(Ta5d6ff"Charlie"Tb4b4b4)Tb4b4b4;
Te6edf3expectTb4b4b4(Te6edf3androidMockTb4b4b4.Te6edf3showMissedCallNotificationTb4b4b4)Tb4b4b4.Te6edf3toHaveBeenCalledWithTb4b4b4(
Ta5d6ff"Missed Call"Tb4b4b4,
Ta5d6ff"You missed a call from Charlie."
Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3itTb4b4b4(Ta5d6ff"cancelIncomingCallNotification delegates to Android bridge"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3NotificationUtilsTb4b4b4.Te6edf3cancelIncomingCallNotificationTb4b4b4(Tb4b4b4)Tb4b4b4;
Te6edf3expectTb4b4b4(Te6edf3androidMockTb4b4b4.Te6edf3cancelIncomingCallNotificationTb4b4b4)Tb4b4b4.Te6edf3toHaveBeenCalledTb4b4b4(Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3describeTb4b4b4(Ta5d6ff"Browser fallback"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3itTb4b4b4(Ta5d6ff"showNewMessageNotification uses per-peer tag"Tb4b4b4, Tff7b72async Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3NotificationUtilsTb4b4b4.Te6edf3showNewMessageNotificationTb4b4b4(Ta5d6ff"Alice"Tb4b4b4, Ta5d6ff"hello"Tb4b4b4, Tff7b72falseTb4b4b4, Ta5d6ff"abcd1234"Tb4b4b4)Tb4b4b4;
Tff7b72await Tff7b72new Tffa657PromiseTb4b4b4(Tb4b4b4(Te6edf3rTb4b4b4) Tb4b4b4=> Te6edf3setTimeoutTb4b4b4(Te6edf3rTb4b4b4, T79c0ff10Tb4b4b4)Tb4b4b4)Tb4b4b4;
Te6edf3expectTb4b4b4(Tffa657globalThisTb4b4b4.Te6edf3NotificationTb4b4b4)Tb4b4b4.Te6edf3toHaveBeenCalledWithTb4b4b4(
Ta5d6ff"New Message"Tb4b4b4,
Te6edf3expectTb4b4b4.Te6edf3objectContainingTb4b4b4(Tb4b4b4{ Te6edf3bodyTff7b72: Ta5d6ff"Alice: hello"Tb4b4b4, Te6edf3tagTff7b72: Ta5d6ff"lxmf-abcd1234" Tb4b4b4}Tb4b4b4)
Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3itTb4b4b4(Ta5d6ff"clearMessageNotifications closes tracked web notifications"Tb4b4b4, Tff7b72async Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3NotificationUtilsTb4b4b4.Te6edf3showNewMessageNotificationTb4b4b4(Ta5d6ff"Alice"Tb4b4b4, Ta5d6ff"hello"Tb4b4b4, Tff7b72falseTb4b4b4, Ta5d6ff"peer1"Tb4b4b4)Tb4b4b4;
Tff7b72await Tff7b72new Tffa657PromiseTb4b4b4(Tb4b4b4(Te6edf3rTb4b4b4) Tb4b4b4=> Te6edf3setTimeoutTb4b4b4(Te6edf3rTb4b4b4, T79c0ff10Tb4b4b4)Tb4b4b4)Tb4b4b4;
Tff7b72const Te6edf3instance Tff7b72= Tffa657globalThisTb4b4b4.Te6edf3NotificationTb4b4b4.Te6edf3mockTb4b4b4.Te6edf3resultsTb4b4b4[T79c0ff0Tb4b4b4]Tb4b4b4.Te6edf3valueTb4b4b4;
Te6edf3NotificationUtilsTb4b4b4.Te6edf3clearMessageNotificationsTb4b4b4(Ta5d6ff"peer1"Tb4b4b4)Tb4b4b4;
Te6edf3expectTb4b4b4(Te6edf3instanceTb4b4b4.Te6edf3closeTb4b4b4)Tb4b4b4.Te6edf3toHaveBeenCalledTb4b4b4(Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3itTb4b4b4(Ta5d6ff"clear unknown hash is a no-op"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3expectTb4b4b4(Tb4b4b4(Tb4b4b4) Tb4b4b4=> Te6edf3NotificationUtilsTb4b4b4.Te6edf3clearMessageNotificationsTb4b4b4(Ta5d6ff"missing"Tb4b4b4)Tb4b4b4)Tb4b4b4.Te6edf3notTb4b4b4.Te6edf3toThrowTb4b4b4(Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3describeTb4b4b4(Ta5d6ff"_isAndroid detection"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3itTb4b4b4(Ta5d6ff"returns false when MeshChatXAndroid is missing"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Te6edf3expectTb4b4b4(Te6edf3NotificationUtilsTb4b4b4.Te6edf3_isAndroidTb4b4b4(Tb4b4b4)Tb4b4b4)Tb4b4b4.Te6edf3toBeTb4b4b4(Tff7b72falseTb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3itTb4b4b4(Ta5d6ff"returns false when getPlatform returns non-android"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Tffa657globalThisTb4b4b4.Te6edf3MeshChatXAndroid Tff7b72= Tb4b4b4{ Te6edf3getPlatformTff7b72: Tb4b4b4(Tb4b4b4) Tb4b4b4=> Ta5d6ff"ios" Tb4b4b4}Tb4b4b4;
Te6edf3expectTb4b4b4(Te6edf3NotificationUtilsTb4b4b4.Te6edf3_isAndroidTb4b4b4(Tb4b4b4)Tb4b4b4)Tb4b4b4.Te6edf3toBeTb4b4b4(Tff7b72falseTb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;

Te6edf3itTb4b4b4(Ta5d6ff"returns true when getPlatform returns android"Tb4b4b4, Tb4b4b4(Tb4b4b4) Tb4b4b4=> Tb4b4b4{
Tffa657globalThisTb4b4b4.Te6edf3MeshChatXAndroid Tff7b72= Te6edf3androidMockTb4b4b4;
Te6edf3expectTb4b4b4(Te6edf3NotificationUtilsTb4b4b4.Te6edf3_isAndroidTb4b4b4(Tb4b4b4)Tb4b4b4)Tb4b4b4.Te6edf3toBeTb4b4b4(Tff7b72trueTb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;
Tb4b4b4}Tb4b4b4)Tb4b4b4;


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────